import request from '@/utils/request'

// 查询日排班列表
export function listDailyschedule(query) {
  return request({
    url: '/business/dailyschedule/list',
    method: 'get',
    params: query
  })
}

// 查询日排班详细
export function getDailyschedule(id) {
  return request({
    url: '/business/dailyschedule/' + id,
    method: 'get'
  })
}

// 新增日排班
export function addDailyschedule(data) {
  return request({
    url: '/business/dailyschedule',
    method: 'post',
    data: data
  })
}

// 修改日排班
export function updateDailyschedule(data) {
  return request({
    url: '/business/dailyschedule',
    method: 'put',
    data: data
  })
}

// 删除日排班
export function delDailyschedule(id) {
  return request({
    url: '/business/dailyschedule/' + id,
    method: 'delete'
  })
}

// 导出日排班
export function exportDailyschedule(query) {
  return request({
    url: '/business/dailyschedule/export',
    method: 'get',
    params: query
  })
}

// 新增日排班
export function aiDailyschedule(data) {
  return request({
    url: '/business/dailyschedule/ai-assign',
    method: 'post',
    data: data
  })
}
